<?php
namespace app\model\admin\basic;

use laytp\BaseModel;

class BasicLabel extends BaseModel
{
    protected $name = 'basic_label';

    public function category(){
        return $this->hasOne(BasicLabel::class,"id","pid")->bind(["category_name"=>"name","category_type"=>"use_type"]);
    }
}